/*
 *
 * *******************************************************************
 *   @项目名称: BHex Android
 *   @文件名称: BaseFragmentPresenter.java
 *   @Date: 11/29/18 3:21 PM
 *   @Author: chenjun
 *   @Copyright（C）: 2018 BlueHelix Inc.   All rights reserved.
 *   注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的.
 *  *******************************************************************
 *
 */

package io.bhex.baselib.mvp;

import android.content.Context;
import android.os.Bundle;

public abstract class BaseFragmentPresenter<V extends BaseUI> extends AbstractPresenter<V> {

    private BaseMVPFragment fragment;

    public void onAttach(Context context, BaseMVPFragment fragment) {
        this.fragment = fragment;
    }

    public void onActivityCreated(Bundle savedInstanceState) {
    }

    public void onDestroyView() {
    }

    public void onDetach() {

    }

    public BaseMVPFragment getFragment() {
        return fragment;
    }


    public void onCreate(Bundle savedInstanceState) {

    }

    public void onHiddenChanged(boolean hidden) {

    }

    public void setUserVisibleHint(boolean userVisibleHint) {
    }

    public void onVisibleChanged(boolean visible) {

    }

    public void lazyLoadData() {

    }
}
